﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="demo1.Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生选课系统-登录</title>
    <link rel="stylesheet" href="css/bootstrap-4.6.0/css/bootstrap.css" />
    <link rel="stylesheet" href="css/Login.css" />
    <script src="script/jquery-3.6.0.js"></script>
    <script src="script/jquery-3.6.0.min.js"></script>
</head>
<body>
    <div class="main-warp">
        <%-- 导航栏 --%>
        <div class="nav-warp">
            <nav class="navbar navbar-expand-lg navbar-light bg-light">
                <a class="navbar-brand" href="Default.aspx">学生选课系统</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <ul class="navbar-nav mr-auto">
                        <li class="nav-item active">
                            <a class="nav-link" href="Login.aspx">登录 <span class="sr-only">(current)</span></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="#">注册</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-expanded="false">更多功能
                            </a>
                            <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <a class="dropdown-item" href="#">相关信息</a>
                                <a class="dropdown-item" href="#">关于我们</a>
                                <div class="dropdown-divider"></div>
                                <a class="dropdown-item" href="#">版本有关</a>
                            </div>
                        </li>
                    </ul>
                    <form class="form-inline my-2 my-lg-0">
                        <input class="form-control mr-sm-2" type="search" placeholder="没有任何功能" aria-label="Search">
                        <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
                    </form>
                </div>
            </nav>
        </div>
        <%-- 登录接收表单 --%>
        <div class="login-warp">
            <div class="sign-container">
                <%-- 登陆表单 --%>
                <form action="postPage/getLoginPost.aspx" method="post" >
                    <%--<input type="submit" id="btnSearch" name="btnSearch" value="搜索" class="button btn" />
                    <input id="txtsearchKey" name="txtsearchKey" class="text" value="<%=Request.QueryString["key"] %>" type="text" />--%>
                    <div class="sign-title mt-2">
                        <h2>登录</h2>
                    </div>
                    <div class="sign-text-warp mt-4">
                        <%-- 用户名 --%>
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" name="username" class="form-control" id="username" value="<%=Request.QueryString["username"] %>" />
                            <small id="usernameHelp" class="form-text text-muted">写吧</small>
                        </div>
                        <%-- 密码 --%>
                        <div class="form-group">
                            <label for="password1">密码</label>
                            <input type="password" name="pd" class="form-control" id="pd" value="<%=Request.QueryString["pd"] %>" />
                        </div>
                    </div>
                    <%-- 是否记住密码 --%>
                    <div class="sign-checkBox-warp">
                        <div class="form-group form-check">
                            <input type="checkbox" class="form-check-input" id="checkbox1" />
                            <label class="form-check-label" for="checkbox1">记住密码</label>
                        </div>
                    </div>
                    <div class="sign-button-warp mt-4">
                        <div class="button-group">
                            <%-- 提交 --%>
                            <input class="btn btn-primary ml-3 mr-3" type="submit" value="登录" />
                            <input class="btn btn-primary ml-3 mr-3" type="button" value="注册" />
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
<script src="css/bootstrap-4.6.0/js/bootstrap.js"></script>
</html>
